import fs from 'fs'
import path from 'path'
import zlib from 'zlib'

const gzip = zlib.createGzip()


const inFile = fs.createReadStream(path.resolve('src/0010_解压缩/data.pdf'))
const outFile = fs.createWriteStream(path.resolve('src/0010_解压缩/data1.pdf.gz'))

inFile.pipe(gzip).pipe(outFile)
